package com.hbt.springbootquick.conf;

import com.hbt.springbootquick.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

@Configuration
public class MyConfig {
    @Bean("user1")
    public User getUser(){
        User user = new User();
        user.setUsername("sfgsdf个水电费");
        return user;
    }

//    @Bean("multipartResolver")
//    public CommonsMultipartResolver getmul(){
//        return new CommonsMultipartResolver();
//    }
}
